using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class attackring : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024find_0024259 : GenericGenerator<WaitForSeconds>
	{
		internal attackring _0024self__0024261;

		public _0024find_0024259(attackring self_)
		{
			_0024self__0024261 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024261);
		}
	}

	public bool leftarrow;

	public AudioClip clip;

	public ddload ddload;

	public GameObject bs;

	public GameObject bk;

	public GameObject dcs;

	public GameObject dgs;

	public GameObject df;

	public GameObject kd;

	public GameObject md;

	public GameObject wb;

	public GameObject tg;

	public GameObject fl;

	public GameObject ab;

	public GameObject bt;

	public GameObject sb;

	public GameObject kid;

	public GameObject wa;

	public Texture pressed;

	public Texture unpressed;

	public int state;

	private GUITexture gui;

	public attackring()
	{
		state = 1;
	}

	public void Start()
	{
		gui = gameObject.GetComponent<GUITexture>();
		StartCoroutine(find());
	}

	public void Update()
	{
		if ((bool)ddload)
		{
			ddload.state = state;
		}
		if (state == 0)
		{
			state = 15;
			change();
		}
		if (state == -1)
		{
			state = 15;
			change();
		}
		if (state == 16)
		{
			state = 1;
			change();
		}
		if (UnityEngine.Input.touchCount == 0)
		{
			gui.texture = unpressed;
		}
		if (UnityEngine.Input.touchCount <= 0)
		{
			return;
		}
		Touch touch = Input.touches[0];
		if (touch.phase != 0 || !GetComponent<GUITexture>().HitTest(touch.position))
		{
			return;
		}
		leftarrow = false;
		AudioSource.PlayClipAtPoint(clip, Camera.main.transform.position);
		gui.texture = pressed;
		state++;
		change();
		ddload.state = state;
		if (state == 1)
		{
			if (PlayerPrefs.GetInt("KDattack") == 0)
			{
				state = 2;
			}
			if (PlayerPrefs.GetInt("KDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 1);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = true;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 2)
		{
			if (PlayerPrefs.GetInt("BSattack") == 0)
			{
				state = 3;
			}
			if (PlayerPrefs.GetInt("BSattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 2);
				bs.active = true;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 3)
		{
			if (PlayerPrefs.GetInt("BKattack") == 0)
			{
				state = 4;
			}
			if (PlayerPrefs.GetInt("BKattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 3);
				bs.active = false;
				bk.active = true;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 4)
		{
			if (PlayerPrefs.GetInt("DcSattack") == 0)
			{
				state = 5;
			}
			if (PlayerPrefs.GetInt("DcSattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 4);
				bs.active = false;
				bk.active = false;
				dcs.active = true;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 5)
		{
			if (PlayerPrefs.GetInt("DgSattack") == 0)
			{
				state = 6;
			}
			if (PlayerPrefs.GetInt("DgSattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 5);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = true;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 6)
		{
			if (PlayerPrefs.GetInt("DFattack") == 0)
			{
				state = 7;
			}
			if (PlayerPrefs.GetInt("DFattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 6);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = true;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 7)
		{
			if (PlayerPrefs.GetInt("MDattack") == 0)
			{
				state = 8;
			}
			if (PlayerPrefs.GetInt("MDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 7);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = true;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 8)
		{
			if (PlayerPrefs.GetInt("WDattack") == 0)
			{
				state = 9;
			}
			if (PlayerPrefs.GetInt("WDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 8);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = true;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 9)
		{
			if (PlayerPrefs.GetInt("TGattack") == 0)
			{
				state = 10;
			}
			if (PlayerPrefs.GetInt("TGattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 9);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = true;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 10)
		{
			if (PlayerPrefs.GetInt("FLattack") == 0)
			{
				state = 11;
			}
			if (PlayerPrefs.GetInt("FLattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 10);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = true;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 11)
		{
			if (PlayerPrefs.GetInt("ABattack") == 0)
			{
				state = 12;
			}
			if (PlayerPrefs.GetInt("ABattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 11);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = true;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 12)
		{
			if (PlayerPrefs.GetInt("BTattack") == 0)
			{
				state = 13;
			}
			if (PlayerPrefs.GetInt("BTattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 12);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = true;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 13)
		{
			if (PlayerPrefs.GetInt("SBattack") == 0)
			{
				state = 14;
			}
			if (PlayerPrefs.GetInt("SBattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 13);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = true;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 14)
		{
			if (PlayerPrefs.GetInt("KiDattack") == 0)
			{
				state = 15;
			}
			if (PlayerPrefs.GetInt("KiDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 14);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = true;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 15)
		{
			if (PlayerPrefs.GetInt("WAattack") == 0)
			{
				state = 1;
			}
			if (PlayerPrefs.GetInt("WAattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 15);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: true);
			}
		}
	}

	public void change()
	{
		if (!leftarrow)
		{
			if (state == 1)
			{
				if (PlayerPrefs.GetInt("KDattack") == 0)
				{
					state = 2;
				}
				if (PlayerPrefs.GetInt("KDattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 1);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = true;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 2)
			{
				if (PlayerPrefs.GetInt("BSattack") == 0)
				{
					state = 3;
				}
				if (PlayerPrefs.GetInt("BSattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 2);
					bs.active = true;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 3)
			{
				if (PlayerPrefs.GetInt("BKattack") == 0)
				{
					state = 4;
				}
				if (PlayerPrefs.GetInt("BKattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 3);
					bs.active = false;
					bk.active = true;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 4)
			{
				if (PlayerPrefs.GetInt("DcSattack") == 0)
				{
					state = 5;
				}
				if (PlayerPrefs.GetInt("DcSattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 4);
					bs.active = false;
					bk.active = false;
					dcs.active = true;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 5)
			{
				if (PlayerPrefs.GetInt("DgSattack") == 0)
				{
					state = 6;
				}
				if (PlayerPrefs.GetInt("DgSattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 5);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = true;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 6)
			{
				if (PlayerPrefs.GetInt("DFattack") == 0)
				{
					state = 7;
				}
				if (PlayerPrefs.GetInt("DFattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 6);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = true;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 7)
			{
				if (PlayerPrefs.GetInt("MDattack") == 0)
				{
					state = 8;
				}
				if (PlayerPrefs.GetInt("MDattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 7);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = true;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 8)
			{
				if (PlayerPrefs.GetInt("WBattack") == 0)
				{
					state = 9;
				}
				if (PlayerPrefs.GetInt("WBattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 8);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = true;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 9)
			{
				if (PlayerPrefs.GetInt("TGattack") == 0)
				{
					state = 10;
				}
				if (PlayerPrefs.GetInt("TGattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 9);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = true;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 10)
			{
				if (PlayerPrefs.GetInt("FLattack") == 0)
				{
					state = 11;
				}
				if (PlayerPrefs.GetInt("FLattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 10);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = true;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 11)
			{
				if (PlayerPrefs.GetInt("ABattack") == 0)
				{
					state = 12;
				}
				if (PlayerPrefs.GetInt("ABattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 11);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = true;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 12)
			{
				if (PlayerPrefs.GetInt("BTattack") == 0)
				{
					state = 13;
				}
				if (PlayerPrefs.GetInt("BTattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 12);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = true;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 13)
			{
				if (PlayerPrefs.GetInt("SBattack") == 0)
				{
					state = 14;
				}
				if (PlayerPrefs.GetInt("SBattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 13);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = true;
					kid.active = false;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 14)
			{
				if (PlayerPrefs.GetInt("KiDattack") == 0)
				{
					state = 15;
				}
				if (PlayerPrefs.GetInt("KiDattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 14);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = true;
					wa.SetActiveRecursively(state: false);
				}
			}
			if (state == 15)
			{
				if (PlayerPrefs.GetInt("WAattack") == 0)
				{
					state = 1;
				}
				if (PlayerPrefs.GetInt("WAattack") == 1)
				{
					PlayerPrefs.SetInt("AttackState", 15);
					bs.active = false;
					bk.active = false;
					dcs.active = false;
					dgs.active = false;
					df.active = false;
					kd.active = false;
					md.active = false;
					wb.active = false;
					tg.active = false;
					fl.active = false;
					ab.active = false;
					bt.active = false;
					sb.active = false;
					kid.active = false;
					wa.SetActiveRecursively(state: true);
				}
			}
		}
		if (!leftarrow)
		{
			return;
		}
		if (state == 1)
		{
			if (PlayerPrefs.GetInt("KDattack") == 0)
			{
				state = 15;
			}
			if (PlayerPrefs.GetInt("KDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 1);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = true;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 2)
		{
			if (PlayerPrefs.GetInt("BSattack") == 0)
			{
				state = 1;
			}
			if (PlayerPrefs.GetInt("BSattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 2);
				bs.active = true;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 3)
		{
			if (PlayerPrefs.GetInt("BKattack") == 0)
			{
				state = 2;
			}
			if (PlayerPrefs.GetInt("BKattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 3);
				bs.active = false;
				bk.active = true;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 4)
		{
			if (PlayerPrefs.GetInt("DcSattack") == 0)
			{
				state = 3;
			}
			if (PlayerPrefs.GetInt("DcSattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 4);
				bs.active = false;
				bk.active = false;
				dcs.active = true;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 5)
		{
			if (PlayerPrefs.GetInt("DgSattack") == 0)
			{
				state = 4;
			}
			if (PlayerPrefs.GetInt("DgSattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 5);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = true;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 6)
		{
			if (PlayerPrefs.GetInt("DFattack") == 0)
			{
				state = 5;
			}
			if (PlayerPrefs.GetInt("DFattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 6);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = true;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 7)
		{
			if (PlayerPrefs.GetInt("MDattack") == 0)
			{
				state = 6;
			}
			if (PlayerPrefs.GetInt("MDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 7);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = true;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 8)
		{
			if (PlayerPrefs.GetInt("WDattack") == 0)
			{
				state = 7;
			}
			if (PlayerPrefs.GetInt("WDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 8);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = true;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 9)
		{
			if (PlayerPrefs.GetInt("TGattack") == 0)
			{
				state = 8;
			}
			if (PlayerPrefs.GetInt("TGattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 9);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = true;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 10)
		{
			if (PlayerPrefs.GetInt("FLattack") == 0)
			{
				state = 9;
			}
			if (PlayerPrefs.GetInt("FLattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 10);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = true;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 11)
		{
			if (PlayerPrefs.GetInt("ABattack") == 0)
			{
				state = 10;
			}
			if (PlayerPrefs.GetInt("ABattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 11);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = true;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 12)
		{
			if (PlayerPrefs.GetInt("BTattack") == 0)
			{
				state = 11;
			}
			if (PlayerPrefs.GetInt("BTattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 12);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = true;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 13)
		{
			if (PlayerPrefs.GetInt("SBattack") == 0)
			{
				state = 12;
			}
			if (PlayerPrefs.GetInt("SBattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 13);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = true;
				kid.active = false;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 14)
		{
			if (PlayerPrefs.GetInt("KiDattack") == 0)
			{
				state = 13;
			}
			if (PlayerPrefs.GetInt("KiDattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 14);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = true;
				wa.SetActiveRecursively(state: false);
			}
		}
		if (state == 15)
		{
			if (PlayerPrefs.GetInt("WAattack") == 0)
			{
				state = 14;
			}
			if (PlayerPrefs.GetInt("WAattack") == 1)
			{
				PlayerPrefs.SetInt("AttackState", 15);
				bs.active = false;
				bk.active = false;
				dcs.active = false;
				dgs.active = false;
				df.active = false;
				kd.active = false;
				md.active = false;
				wb.active = false;
				tg.active = false;
				fl.active = false;
				ab.active = false;
				bt.active = false;
				sb.active = false;
				kid.active = false;
				wa.SetActiveRecursively(state: true);
			}
		}
	}

	public IEnumerator find()
	{
		return new _0024find_0024259(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
